package repo

import "go-weixin/app/music/model"

type MusicRepo interface {
	MusicAdd(music *model.MusicModel) (int64, error)
	MusicExistByTitle(title string) (bool, error)
	MusicGetByTitle(title string, music *model.MusicModel) (bool, error)
	MusicGetByMd5(md5 string, music *model.MusicModel) (bool, error)
	MusicList(limit int64, offset int64, musicList *[]model.MusicModel) error
	MusicDeleteByMd5(md5 string) (int64, error)
	MusicLikeByTitle(title string, limit int, offset int, musicList *[]model.MusicModel) error
	MusicLikeByArtist(artist string, limit int, offset int, musicList *[]model.MusicModel) error
}
